package com.wans.order.controller;

import com.wans.order.feign.WeatherFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WeatherController {

    @Autowired
    private WeatherFeignClient weatherFeignClient;

    @GetMapping("/weather")
    public String getWeather() {
//        return weatherFeignClient.getWeather("88888888", "88888888","江苏","南通");
        return weatherFeignClient.getWeather2("101030100");
    }
}
